home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 September / Chip_2001-09_cd1.bin / sharewar / webscrip / webscripter4s.exe / {app} / Includes / jsTextChange.ob < prev   
Encoding:
Text File  |  2001-07-11  |  1.5 KB  |  47 lines

  1. //begin_lib <!-- Begin External JavaScript -- DO NOT REMOVE THIS LINE -->
  2.  
  3. function jsTextChange(){
  4. this.OverColor = "";
  5. this.OutColor = "";
  6. this.OverUnderline = true;
  7. this.OutUnderline = true;
  8. this.OverFont = "";
  9. this.OutFont = "";
  10. this.OverFontBold = false;
  11. this.OutFontBold = false;
  12. this.OverFontSize = "";
  13. this.OutFontSize = "";
  14. this.OverFontItalic = false;
  15. this.OutFontItalic = false;
  16. this.OverBgColor = "";
  17. this.OutBgColor = "";
  18. this.Over = tc_Over;
  19. this.Out = tc_Out;
  20. }
  21.  
  22. function tc_Over(item){
  23.           if(document.all){
  24.           item.style.color = this.OverColor;
  25.           item.style.textDecoration = (this.OverUnderline) ? "underline" : "none";
  26.           item.style.fontFamily = this.OverFont;
  27.           item.style.fontWeight = (this.OverFontBold) ? "bold" : "normal";
  28.           item.style.fontSize = this.OverFontSize;
  29.           item.style.fontStyle = (this.OverFontItalic) ? "italic" : "normal";
  30.           item.style.backgroundColor = this.OverBgColor;
  31.           }
  32. }
  33.  
  34. function tc_Out(item){
  35.           if(document.all){
  36.           item.style.color = this.OutColor;
  37.           item.style.textDecoration = (this.OutUnderline) ? "underline" : "none";
  38.           item.style.fontFamily = this.Font;
  39.           item.style.fontWeight = (this.OutFontBold) ? "bold" : "normal";
  40.           item.style.fontSize = this.OutFontSize;
  41.           item.style.fontStyle = (this.OutFontItalic) ? "italic" : "normal";
  42.           item.style.backgroundColor = this.OutBgColor;
  43.           }
  44. }
  45.  
  46. //end_lib <!-- End External JavaScript -- DO NOT REMOVE THIS LINE -->
  47.